package com.wicket.okrcomponent.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.github.pagehelper.Page;
import com.github.pagehelper.page.PageMethod;
import com.wicket.okrcomponent.biz.service.SystemDockingService;
import com.wicket.okrcomponent.biz.service.dto.req.*;
import com.wicket.okrcomponent.biz.service.dto.res.*;
import com.wicket.okrcomponent.common.ro.OkrResult;
import com.wicket.okrcomponent.common.util.CommonFunctionHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@RestController
@RequestMapping("/comp/systemDocking/")
public class SystemDockingController {

  @Autowired
  SystemDockingService systemDockingService;
/**
   * D2查询数据库配置答案(公共)
   */
    @PostMapping("queryDatabaseConfAnswerDetailCom")
    public OkrResult<QueryDatabaseConfAnswerDetailComRespDto> queryDatabaseConfAnswerDetailCom(@RequestBody @Validated QueryDatabaseConfAnswerDetailComReqDto reqDTO){
    return OkrResult.success(systemDockingService.queryDatabaseConfAnswerDetailCom(reqDTO));
    }
/**
   * D2执行导入excel文件数据(公共)
   */
    @PostMapping("implementImportExcelFileDataCom")
    public OkrResult<ImplementImportExcelFileDataComRespDto> implementImportExcelFileDataCom(@RequestBody @Validated ImplementImportExcelFileDataComReqDto reqDTO){
    return OkrResult.success(systemDockingService.implementImportExcelFileDataCom(reqDTO));
    }
/**
   * D2执行Excel导入(公共)
   */
    @PostMapping("implementExcelImportCom")
    public OkrResult<ImplementExcelImportComRespDto> implementExcelImportCom(@RequestBody @Validated ImplementExcelImportComReqDto reqDTO){
    return OkrResult.success(systemDockingService.implementExcelImportCom(reqDTO));
    }
}
